<h1>New cmodel</h1>

<% form_tag :action => "create" do %>

  <p>
    <%= "Manufacturer" %>
	<%= select("cmodel", "manufacturer_id", @manufacturers.collect {|c| [ c.name, c.id ] }) %>
	<%= link_to "New Manufacturer", :controller => :manufacturers, :action => :new %>
  </p>
  <p>
    <%= "Model Series" %>
    <%= text_field :cmodel, :series %>
  </p>
  <p>
    <%= "Model Name" %>
    <%= text_field :cmodel, :name %>
  </p>
  <p>
    <%= submit_tag "Create" %>
  </p>
<% end %>

<%= link_to 'Back', :action => "index" %>
